#ifndef XABSTRACTSYNTAXTREEPRINT_H
#define XABSTRACTSYNTAXTREEPRINT_H
#include <xscript/xitemtoken.h>
#include <xscript/xabstractsyntaxtree.h>

class XAbstractSyntaxTreePrint : public XAbstractSyntaxTree {
  public:
    XAbstractSyntaxTreePrint(XTokenPtr inputToken);
  public:
    XAbstractSyntaxTreeType getTreeType()const override {return XAbstractSyntaxTreeType_Print;}
    bool invoke(std::shared_ptr<XVariableTable> table)override;
  private:
    std::shared_ptr<XItem> fromToken(std::shared_ptr<XItem> from);
};
#endif // XABSTRACTSYNTAXTREEPRINT_H
